<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 210px;
        /* height: 300px; */
        border: 1px solid;
        border-radius: 15px;
        margin:10px auto;
        padding: 8px 8px 10px 10px;
        background: #fff;
        overflow: hidden;
        zoom: 1;
      }
      .box img {
        float: left;
        margin: 2px 2px 0 0;
      }
      .box img.clear {
        clear: both;
      }
      body.div,
      img {
        margin: 0;
        padding: 0;
      }
      html,
      body {
        height: 100%;
        background-color: black;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div id="big">
        <img src="./img/big_1.jpg" />
      </div>
      <img src="./img/small_1.jpg" />
      <img src="./img/small_2.jpg" />
      <img src="./img/small_3.jpg" />
      <img class="clear" src="./img/small_4.jpg" />
      <img src="./img/small_5.jpg" />
      <img src="./img/small_6.jpg" />
      <img src="./img/small_7.jpg" />
      <img src="./img/small_8.jpg" />
      <img src="./img/small_9.jpg" />
      <img src="./img/small_10.jpg" />
      <img src="./img/small_11.jpg" />
    </div>
  </body>
</html>
<script>
    window.onload= function(){
        var SS = document.querySelector(".box").getElementsByTagName("img")
        for (var i=1;i<SS.length;i++){
            SS[i].index = i
            SS[i].onmouseover = function(){
                SS[0].src = "./img/big_"+this.index+".jpg"
            }
        }
   }
</script>
